home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / juicy_lucy.swf / scripts / Loader.as
Text File  |  2011-08-19  |  2KB  |  56 lines

  1. function LoaderClass()
  2. {
  3.    var _loc1_ = this;
  4.    _loc1_.slideColor = new Color(_loc1_.slide);
  5.    _loc1_.bordColor = new Color(_loc1_.bord);
  6.    _loc1_.update();
  7. }
  8. LoaderClass.prototype = new MovieClip();
  9. LoaderClass.prototype.update = function()
  10. {
  11.    var _loc1_ = this;
  12.    _loc1_.slideColor.setRGB(_loc1_.scolor);
  13.    _loc1_.bordColor.setRGB(_loc1_.bcolor);
  14.    _loc1_.bord._width = _loc1_.SlideWidth + 4;
  15.    _loc1_.slide._width = _loc1_.SlideWidth;
  16.    _loc1_.bord._height = _loc1_.SlideHeight + 4;
  17.    _loc1_.slide._height = _loc1_.SlideHeight;
  18.    _loc1_.createTextField("mytext",1,_loc1_.bord._x,_loc1_.bord._y,300,40);
  19.    delete _loc1_.mtextFormat;
  20.    _loc1_.mtextFormat = new TextFormat(_loc1_);
  21.    _loc1_.mTextFormat.font = _loc1_.fname;
  22.    _loc1_.mTextFormat.color = pink;
  23.    _loc1_.mTextFormat.size = _loc1_.fsize;
  24.    _loc1_.mytext.text = "";
  25.    _loc1_.mytext.setTextFormat(_loc1_.mtextFormat);
  26. };
  27. LoaderClass.prototype.setSlideWidth = function(b)
  28. {
  29.    this.SlideWidth = b;
  30.    this.update();
  31. };
  32. LoaderClass.prototype.getSlideWidth = function()
  33. {
  34.    return this.SlideWidth;
  35. };
  36. LoaderClass.prototype.setSlideHeight = function(h)
  37. {
  38.    this.SlideHeight = h;
  39.    this.update();
  40. };
  41. LoaderClass.prototype.getSlideHeight = function()
  42. {
  43.    return this.SlideHeight;
  44. };
  45. LoaderClass.prototype.setTintColor = function(c)
  46. {
  47.    this.tcolor = c;
  48.    this.update();
  49. };
  50. LoaderClass.prototype.turnOnTint = function()
  51. {
  52.    this.applyTint = true;
  53.    this.update();
  54. };
  55. Object.registerClass("Loader",LoaderClass);
  56.